package alibaba.threadlocal.demo01;

import lombok.extern.slf4j.Slf4j;

/**
 * @author ChangLiang
 * @date 2020/4/20
 */
@Slf4j
public class Greeting {

    void hello() {
        User currentUser = UserContext.getCurrentUser();
        log.info("hello, " + currentUser.getName() + "!");
    }
}
